package com.exm.collectcodenew.threadstate;

public class BlockedThread implements Runnable{
    @Override
    public void run() {
        synchronized(BlockedThread.class){
            while (true){
                WaitingTime.waitSecond(100);
            }
        }
    }

    public static void main(String[] args) {
        new Thread(new BlockedThread(),"t1").start();
        new Thread(new BlockedThread(),"t2").start();
    }
}
